﻿<UserControl x:Class="ResPackClient.DataBaseExplorer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Height="Auto" Width="Auto">
    
    <Grid>         
        <!-- Grid Layout-->            
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        
        <!--Menu-->
        <Menu Grid.Row="0">
            <MenuItem Header="{StaticResource STR_MENU_FILE}"></MenuItem>
            <MenuItem Header="{StaticResource STR_MENU_DATA}">
                <MenuItem Header="{StaticResource STR_MENU_DATA_ADD}">
                    <MenuItem Header="{StaticResource STR_MENU_DATA_WORKSPACE}" Click="OnAddRow"></MenuItem>
                    <MenuItem Header="{StaticResource STR_MENU_DATA_FAMILY}" Click="OnAddRow"></MenuItem>
                    <MenuItem Header="{StaticResource STR_MENU_DATA_TYPE}" Click="OnAddRow"></MenuItem>
                </MenuItem>
                <MenuItem Header="{StaticResource STR_MENU_DATA_MODIFY}">
                    <MenuItem Header="{StaticResource STR_MENU_DATA_WORKSPACE}" Click="OnModifyWorkSpace"></MenuItem>
                    <MenuItem Header="{StaticResource STR_MENU_DATA_FAMILY}"></MenuItem>
                    <MenuItem Header="{StaticResource STR_MENU_DATA_TYPE}"></MenuItem>
                </MenuItem>
                <MenuItem Header="{StaticResource STR_MENU_DATA_DELETE}">
                    <MenuItem Header="{StaticResource STR_MENU_DATA_WORKSPACE}" Click="OnDeleteRow"></MenuItem>
                    <MenuItem Header="{StaticResource STR_MENU_DATA_FAMILY}" Click="OnDeleteRow"></MenuItem>
                    <MenuItem Header="{StaticResource STR_MENU_DATA_TYPE}" Click="OnDeleteRow"></MenuItem>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="{StaticResource STR_MENU_HELP}"></MenuItem>
        </Menu>
        
        <!--Tree-->
        <TreeView Name="_tvDataBase"  Grid.Row="1" ItemsSource="{Binding Path=tbWorkSpace}" ItemTemplate="{StaticResource DATA_TEMPLATE_WORKSPACE}"    
                  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  
                  VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling">
       
        </TreeView>
        


    </Grid>

</UserControl>
